package com.example.echarts.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaowei
 * @since 2022-05-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("comparison_table")
public class ComparisonTable extends Model<ComparisonTable> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("country_name")
    private String countryName;

    @TableField("country_english_name")
    private String countryEnglishName;

    @TableField("capital_name")
    private String capitalName;

    @TableField("capital_english_name")
    private String capitalEnglishName;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
